import request from '@/utils/request'

// 查询本人及关系密切家庭成员一级市场对外投资情况列表
export function listRiskForeignInvestment(query) {
  return request({
    url: '/foreignInvestment/riskForeignInvestment/list',
    method: 'get',
    params: query
  })
}

// 查询本人及关系密切家庭成员一级市场对外投资情况详细
export function getRiskForeignInvestment(id) {
  return request({
    url: '/foreignInvestment/riskForeignInvestment/' + id,
    method: 'get'
  })
}

// 保存本人及关系密切家庭成员一级市场对外投资情况
export function saveRiskForeignInvestment(data) {
  return request({
    url: '/foreignInvestment/riskForeignInvestment/save',
    method: 'post',
    data: data
  })
}

// 删除本人及关系密切家庭成员一级市场对外投资情况
export function delRiskForeignInvestment(id) {
  return request({
    url: '/foreignInvestment/riskForeignInvestment/' + id,
    method: 'delete'
  })
}

// 导出本人及关系密切家庭成员一级市场对外投资情况
export function exportRiskForeignInvestment(query) {
  return request({
    url: '/foreignInvestment/riskForeignInvestment/export',
    method: 'get',
    params: query
  })
}
